<%@include file="header.jsp" %>
<table class="table table-striped">
	<thead>
	<tr>
		<th>#</th>
		<th><fmt:message key="label.booking.username" /></th>
		<th><fmt:message key="label.booking.facilityname" /></th>
		<th><fmt:message key="label.booking.startDate" /></th>
		<th><fmt:message key="label.booking.period" /></th>
		<th><fmt:message key="label.booking.status" /></th>
		<th><fmt:message key="label.booking.details" /></th>
	</tr>
	</thead>
	<tbody>
	<c:forEach var="booking" items="${bookinglist}" varStatus="status">
		<tr class="${status.index%2==0?'even':'odd'}">
			<td>${status.index + 1}</td>
			<td>${booking.userName}</td>
			<td>${booking.facilityName}</td>
			<td>${booking.startDate}</td>
			<td>${booking.period}</td>
			<td>${booking.status}</td>
			<td><c:url var="detailurl" scope="page"
					value="/BookingDetails">
					<c:param name="bookingID" value="${booking.bookingID }" />
					<c:param name="user" value="false" />
				</c:url> <a class="btn btn-primary" href="${detailurl}"><fmt:message key="label.booking.details" /></a>
		</tr>
	</c:forEach>
	</tbody>
</table>
<%@include file="footer.jsp"%>
